Add Window Functions for use with function builder#808
Merged
andygrove merged 26 commits intoapache:mainfrom Sep 2, 2024
Merged
Add Window Functions for use with function builder#808andygrove merged 26 commits intoapache:mainfrom
andygrove merged 26 commits intoapache:mainfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
This addresses part of #780 but we need a follow on PR to handle the aggregates.
Rationale for this change
In DataFusion 41 we have added the ability to create builders for the parameters for window and aggregate functions. These are more expressive when it comes to setting the window frame, ordering, partition, and null handling. This MR exposes this functionality on the python side.
What changes are included in this PR?
Added functions
Also updated the window function page of the online documentation to include links to these, examples of how to use them, and a description of how to set the additional parameters.
Updated the unit tests.
Are there any user-facing changes?
There are no breaking changes, but the old functions.window has been marked as deprecated. We can change this if needed because it is currently the only way to use aggregate functions as window functions. That is to be addressed in #833